//
//  ChartContext.h
//  Pods
//
//  Created by E.F.B on 15-5-5.
//
//

#import <Foundation/Foundation.h>

#define kScreenNightMode        @"NightMode"
#define CTX_CHART_VERSION       @"ChartVersion"

#define kDeviceAcmodels         @"device_info_acmodels"
#define kDeviceCarrier          @"device_info_carrier"
#define kDeviceHaveGroup        @"device_info_have_group"
#define kDeviceIsForeign        @"device_info_is_foreign"
#define kDeviceIsOuternet       @"device_info_is_outernet"
#define kDeviceName             @"device_info_name"
#define kDeviceUDID             @"device_info_udid"
#define kDeviceGroup            @"device_info_device_group"
#define CTX_TASK_DEPARTURE      @"Departure"
#define CTX_TASK_ARRIVAL        @"Arrival"
#define CTX_TASK_ALTERNATES     @"Alternates"
#define CTX_TASK_FLIGHT_NO      @"FlightNo"
#define CHART_GETID             @"GetCurrentVersionID"

#define CHART_DEFINE_CONTEXT_KEY(key) static NSString * const key = @#key
CHART_DEFINE_CONTEXT_KEY(kContextNightModel);
CHART_DEFINE_CONTEXT_KEY(kContextChartNightModel);
CHART_DEFINE_CONTEXT_KEY(kContextUser);

CHART_DEFINE_CONTEXT_KEY(kContextPDFBToolth);
CHART_DEFINE_CONTEXT_KEY(kContextPDFMark);
CHART_DEFINE_CONTEXT_KEY(kConextPDFRotation);
CHART_DEFINE_CONTEXT_KEY(kConextPDFVersion);
CHART_DEFINE_CONTEXT_KEY(kConextDeviceIsForeign);

CHART_DEFINE_CONTEXT_KEY(kFavorateButtonTapped);

CHART_DEFINE_CONTEXT_KEY(kChartDBFileName);
CHART_DEFINE_CONTEXT_KEY(kCODBFileName);
CHART_DEFINE_CONTEXT_KEY(kARDBFileName);
CHART_DEFINE_CONTEXT_KEY(kContextFullScreen);

#define CHART_LEFT_ITEM    @[ @"黄页",@"REF",@"STAR",@"APP",@"TXI",@"SID",@"CO",@"细则" ]//,@"AR"  ,@"EOSID"


@interface ChartContext : NSObject

+ (ChartContext *)instance;

- (void)reset;
- (id)objectForKey:(id)key;
- (id)setValue:(id)value forKey:(NSString *)key;
- (NSDictionary *)dictionary;

@end
